package cn.theten52.demo.patterns.design.behavior.mediation.update2;

/**
 * 具体同事类：武当派
 *
 * @author wangjin
 * @date 2021/4/3
 */
public class Wudang extends Colleague {
    public Wudang(Mediator mediator) {
        super(mediator);
    }

    public void sendMessage(String message) {
        mediator.notice(message, this);
    }

    public void getNotice(String message) {
        System.out.println("武当派收到消息：" + message);
    }
}

